home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
na386
/
add1.asm
< prev
next >
Wrap
Assembly Source File
|
1993-07-08
|
314b
|
15 lines
1000 ';*** add.rexの別の書き方 ***
1010 '
1020 '.result equ [4] ;ESPからのオフセット値
1030 '.p1 equ [8]
1040 '.p2 equ [12]
1050 '
1060 'ADDER:
1070 ' mov ebp,esp
1080 ' mov eax,[ebp].p1
1090 ' add eax,[ebp].p2
1100 ' mov ebx,[ebp].result
1110 ' mov [ebx],eax
1120 ' ret
1130 '